// JointPoint.h: interface for the JointPoint class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_JOINTPOINT_H__655A74FC_EF8C_40F8_8BCC_67A907C01D73__INCLUDED_)
#define AFX_JOINTPOINT_H__655A74FC_EF8C_40F8_8BCC_67A907C01D73__INCLUDED_

#include "PartPoint.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ContainerModelPoint.h"

class JointPoint : public ContainerModelPoint  
{
public:
	JointPoint();
	JointPoint(ModelObject *pObject);
	virtual ~JointPoint();
	virtual void Erase();
	virtual void UnErase();
	virtual void SetDicHandle(const Dictionary& handle);
	virtual void Update(BOOL bUpdate = FALSE);

public:
	PartPoint FindObserver(Part* pPart);
	void SHObserver(SHPoint* pPt){
		m_pSHPt = pPt;
	}

	SHPoint* SHObserver() const {
		return m_pSHPt;
	}


private:
	void UpdateObserver();

private:
	SHPoint* m_pSHPt;
};

#endif // !defined(AFX_JOINTPOINT_H__655A74FC_EF8C_40F8_8BCC_67A907C01D73__INCLUDED_)
